home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / program / ssexpert.zip / README.TXT < prev    next >
Text File  |  1996-09-02  |  1KB  |  44 lines

  1. Unzip SSEXPERT.ZIP into a temporary directory and run the SETUP utility.
  2. The SETUP utility will copy the DLL, HLP and DCU files to the
  3. appropriate directories and update Delphi's Registry entries.  Note that
  4. if Delphi is running you will have to close and restart Delphi for the
  5. changes to take effect.
  6.  
  7. Run Delphi and select "File|New". You will see that there is a new
  8. "Shareware Expert" on the Projects page.  Select and use the expert and
  9. the basic shell of a screen saver will be created.  If you told the
  10. expert to generate an idle event handler, writing a screen saver simply
  11. requires that you write some code in the idle event handler such as:
  12.  
  13.  procedure TSaverForm.IdleEvent;
  14.  var
  15.   X,Y,R,G,B:integer;
  16.   TheColor : TColor;
  17.  begin
  18.   X := Random(ClientWidth);
  19.   Y := Random(ClientHeight);
  20.   R := Random(256);
  21.   G := Random(256);
  22.   B := Random(256);
  23.   if ((R+G+B) div 3) >= 200 then
  24.       TheColor := RGB(R,G,B)
  25.   else
  26.       TheColor := 0;
  27.   Canvas.Pen.Color := TheColor;
  28.   Canvas.MoveTo(LastX,LastY);
  29.   Canvas.LineTo(X,Y);
  30.   LastX := X;
  31.   LastY := Y;
  32.   Done := false;
  33.  end;
  34.  
  35. Once compiled, you must give the generated EXE file an ".SCR" extension
  36. and copy it to your WINDOWS\SYSTEM directory.
  37.  
  38. This expert maintains UNISTALL information.  In Win95/WinNT4 select the
  39. Control Panel's "Add/Remove Programs" icon, and then select the
  40. ScreenSaver entry in the displayed list.
  41.  
  42. Pat
  43. 70007.4660@compuserve.com
  44.